package ace.oauth2.rpc.api;

import ace.fw.feign.config.MultipartSupportConfig;
import ace.fw.model.R;
import ace.oauth2.constant.OAuth2Constants;
import ace.oauth2.model.dto.OAuth2TokenDto;
import ace.oauth2.model.request.OAuth2CreateTokenRequest;
import ace.oauth2.rpc.contract.OAuth2RpcContract;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @author Caspar
 * @contract 279397942@qq.com
 * @create 2020/1/14 12:29
 * @description oauth2 标准接口封装
 */
@FeignClient(
        name = OAuth2Constants.FEIGN_CLIENT_NAME,
        url = OAuth2Constants.FEIGN_CLIENT_URL,
        contextId = "OAuth2RpcApi",
        path = "/",
        configuration = {MultipartSupportConfig.class}
)
@Validated
public interface OAuth2RpcApi extends OAuth2RpcContract {

}
